#ifndef LUCNX_TYPES_H
#define LUCNX_TYPES_H

#define bool _Bool
#define true 1
#define false 0

#define EOF -1
#define EOS '\0'

#define NULL (void*)0

#define BMB __asm__ volatile("xchgw %bx, %bx\n")

#define _packed __attribute__((packed))

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;

typedef signed char int8;
typedef signed short int16;
typedef signed int int32;
typedef long long int64;

typedef int32 size_t;
typedef void* target_t;
typedef int32 fd_t;
typedef int16 pid_t;
typedef int16 ino_t; // inode 编号
typedef int16 dev_t;

#endif